<template>
 <div id="main">
  <img @click="$router.push('/')" class="return" src="./images/主页.png"/>
  <div class="ui">
    <span style="--i:0;"></span>
        <span style="--i:1;"></span>
        <span style="--i:2;"></span>
        <span style="--i:3;"></span>
  </div>
 </div>
</template>

<script>
export default {
    name:'Log',
}
</script>

<style scoped>
#main{
  display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.ui{
    width: 640px;
    height: 360px;
    display: flex;
    transition: 0.5s;
    transform: rotate(-25deg) skew(25deg) translate(0,0);
}
.ui:hover{
    transform: rotate(-25deg) skew(25deg) translate(0,-20px);
}
.ui span{
    /* 这个地方是有创意的，有想法的 */
    list-style: none;
    width: 25%;
    background: url(./images/03.jpg);
    background-position: calc(-160px * var(--i));
    background-size:410% 100%;
    background-repeat: no-repeat;
    height: 100%;
    transition: 0.5s;
    border-top: 5px solid #fff;
}
.ui:hover span:nth-child(odd){
    transform: skewY(25deg);
    box-shadow: inset 20px 0 50px rgba(0,0, 0,0.5);
}
.ui:hover span:nth-child(even){
    transform: skewY(-25deg);
    box-shadow: inset 20px 0 50px rgba(0,0, 0,0.5);
}
.ui span:first-child{
    border-left: 5px solid #fff;
}
.ui span:last-child{
    border-right: 5px solid #fff;
}
img.return {
  position: absolute;
  z-index: 20;
  left: 10px;
  top: 10px;
  transition: .5s;
  cursor: pointer;
  width: 40px;
}

img.return:hover {
  transform: scale(1.5);
}
</style>